﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" debug="true" AutoEventWireup="true" CodeFile="Feeds.aspx.cs" Inherits="feeds" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>arf - Feeds</title>
</asp:Content>

<asp:Content ID="sideBar" ContentPlaceHolderID="masterSideBar" Runat="Server">
    <span id="fff"><a id="currentPage" href="feeds.aspx">feeds</a> | <a href="friends.aspx">friends</a> | <a href="find.aspx">find</a></span>
   
    
    
    <div class="sideBarSubSection">
          
    <asp:LinkButton ID="aggFeeds" runat="server" Text="Aggregated Feeds" 
        onclick="aggFeeds_Click"></asp:LinkButton>
    </ br>
    
    <asp:GridView ID="GridView2" runat="server" 
            DataSourceID="DatabaseSqlDataSource1" 
            OnRowCommand="GridView2_RowCommand"
            OnRowDataBound="GridView2_OnRowDataBound"  
            ShowHeader="False" GridLines="None">
        <Columns>
            <asp:ButtonField CommandName="View Feed" Text="View Feed" />
        </Columns>
    </asp:GridView>
    
    
    <asp:SqlDataSource ID="DatabaseSqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>" 
        SelectCommand="SELECT Subscribe.URL, Feed.Title FROM Feed INNER JOIN Subscribe ON Feed.URL = Subscribe.URL WHERE (Subscribe.Name = @currUser)">
    </asp:SqlDataSource>
    
    <br />
    <div id="availableFeeds"></div>
    <br />
    </div>
    
</asp:Content>



<asp:Content ID="mainBody" ContentPlaceHolderID="mainBody" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
        <asp:Literal ID="Literal1" runat="server" EnableViewState="true"></asp:Literal>

    
    
   

    
        
</asp:Content>